set the visible of card field 1 to not the visible of card field 1
if the visible of card field 1 is true then
set the name of me to "Hide Pascal Source"
else set the name of me to "Show Pascal Source"
end mouseUp
-- part 3 (field)
-- low flags: 81
-- high flags: 2007
-- rect: left=12 top=26 right=298 bottom=491
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 22
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Source
-- part contents for background part 16
----- text -----
FILETOCLIP XCMD version 1.5
Kevin Calhoun
The FileToClip XCMD copies the contents of a text file to the clipboard. You choose the text file from a standard file dialog box. Once the text is on the clipboard, you can then paste it into a field, into another application running concurrently under MultiFinder, or into a desk accessory (such as McSink).
If an error occurs, FileToClip will return an error message as the result. Word 1 of this message will be "Error". If the text was copied successfully, FileToClip returns the full pathname of the file as the result.
If you want the text to go directly to a HyperCard field without having to paste it manually, use the FileToField XCMD.
FileToClip takes no parameters.
-- part contents for card part 3
----- text -----
UNIT ReadToClipUnit;
{ FileToClip XCMD © 1988-1989 by the Trustees of Dartmouth College }